how to convert boolean to int in java